package com.tangula.voicenote

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import com.tangula.android.utils.ApplicationUtils
import com.tangula.voicenote.service.AddOverlayService

class BootReceiver: BroadcastReceiver() {
    override fun onReceive(context: Context?, intent: Intent?) {
        Log.v("console", "receiver")
        context?:ApplicationUtils.APP.startService(Intent(context, AddOverlayService::class.java).apply {
            //this.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
        })
    }
}